﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;

namespace Zocono.WCS.Domain.DomainRepository
{
    public interface IFunctionRepository : IRepository<FunctionInfo>
    {
        /// <summary>
        /// 根据上级菜单ID和状态查询菜单列表
        /// </summary>
        /// <param name="pId">上级菜单ID，0=顶级单</param>
        /// <param name="status">状态1=正常</param>
        /// <returns></returns>
        Task<List<FunctionInfo>> GetFunctionInfoListByPidAsync(long pId, int status);
        /// <summary>
        /// 更新菜单状态
        /// </summary>
        /// <param name="id">编号</param>
        /// <param name="status">状态1=启用，2=禁用</param>
        /// <returns></returns>
        Task<bool> UpdateStatusByIdAsync(long id, int status);
    }
}
